<div class="info meta-container-40">
    <!--<div id="info-left" class="col-lg-3 col-md-3 col-sm-5 col-xs-12">-->
    <div id="info-left" class="col-xs-3">
        <img ng-src="{{formData.avatar || 'images/common/header.png'}}" width="100%" height="200px"
             spinkit-image-preloader='circle-spinner' spinkit-image-preloader-class='meta-circle-spinner' alt="头像">

        <div style="text-align: center;margin-top:20px" ng-show="accountEditing">
            <meta-single-qnuploader uploader-config="CONFIG.qnuploaderImage" uploader-data="temp.avatar"
                                    template-url="views/widget/meta.image.qnuploader.html">
            </meta-single-qnuploader>
        </div>
    </div>
    <!--<div id="info-right" class="col-lg-9 col-md-9 col-sm-7 col-xs-22 form-horizontal">-->

    <div id="info-right" class="col-xs-9 form-horizontal">
        <form class="info-account" name="baseForm" novalidate ng-submit="submitForm(baseForm.$valid)">
            <h4 class="info-title">个人信息</h4>

            <div class="info-body">
                <div class="form-group form-group-sm" ng-class="{'has-error': baseForm.name.$invalid && clicked}"
                     style="height: 32px">
                    <label class="col-xs-2 control-label">姓名</label>

                    <div class="col-xs-4" ng-show="accountEditing">
                        <input class="form-control" type="text" ng-model="formData.name" name="name"
                               ng-class="{'error-input': baseForm.name.$invalid && firstCheck}"
                               required placeholder="请输入姓名"/>
                    </div>
                    <div class="col-xs-4" ng-hide="accountEditing">
                        <p class="form-control-static" ng-bind="formData.name">
                        </p>
                    </div>
                    <div class="col-xs-2" ng-messages="baseForm.name.$error" ng-show="clicked">
                        <span class="error-tips">必填</span>
                    </div>
                </div>

                <div class="form-group form-group-sm">
                    <label class="col-xs-2 control-label">手机号码</label>

                    <div class="col-xs-10">
                        <p class="form-control-static">{{formData.mobile}}<span style="color:#aaa"
                                                                                ng-show="accountEditing">&nbsp;&nbsp;* 修改手机号请联系迈科技：021-54336693</span>
                        </p>
                    </div>
                </div>

                <div class="form-group form-group-sm">
                    <label class="col-xs-2 control-label">电子邮箱</label>

                    <div class="col-xs-4">
                        <p class="form-control-static" ng-bind="formData.email">
                        </p>
                    </div>
                </div>
            </div>

            <div class="col-xs-6" ng-hide="accountEditing">
                <button class="btn btn-info btn-meta-14 btn-meta-blue" type="button" ng-click="edit()"
                        ng-disabled="profileEditing">编辑个人信息
                </button>
            </div>
            <div class="col-xs-6" ng-show="accountEditing">
                <button class="btn btn-info btn-meta-14 btn-meta-blue" type="submit">提&nbsp;&nbsp;交</button>
                <button class="btn btn-info btn-meta-14 btn-meta-blue-reverse" type="button" ng-click="reset()">取&nbsp;&nbsp;消
                </button>
            </div>
            <div class="clearfix"></div>
        </form>
        <div class="info-profile" ng-hide="profileEditing">
            <h4 class="info-title">个人资料</h4>

            <div class="info-body">
                <div class="form-group form-group-sm">
                    <label class="col-xs-2 control-label">渠道领域</label>

                    <div class="col-xs-10">
                        <p class="form-control-static"
                           ng-bind="formData.partnerInfo.areas?formData.partnerInfo.areas.join('/'):'无'">
                        </p>
                    </div>
                </div>
                <div class="form-group form-group-sm">
                    <label class="col-xs-2 control-label">工作单位</label>

                    <div class="col-xs-10">
                        <p class="form-control-static" ng-bind="formData.partnerInfo.organization">
                        </p>
                    </div>
                </div>
                <div class="form-group form-group-sm">
                    <label class="col-xs-2 control-label">所属部门</label>

                    <div class="col-xs-10">
                        <p class="form-control-static" ng-bind="formData.partnerInfo.department">
                        </p>
                    </div>
                </div>
                <div class="form-group form-group-sm">
                    <label class="col-xs-2 control-label">所属职位</label>

                    <div class="col-xs-10">
                        <p class="form-control-static" ng-bind="formData.partnerInfo.post">
                        </p>
                    </div>
                </div>

                <div class="form-group form-group-sm">
                    <label class="col-xs-2 control-label">常驻地</label>

                    <div class="col-xs-10">
                        <p class="form-control-static" ng-bind="formData.partnerInfo.camp.join('/')">
                        </p>
                    </div>
                </div>

                <div class="form-group form-group-sm">
                    <label class="col-xs-2 control-label">项目经验</label>

                    <div class="col-xs-10">
                        <p class="form-control-static fr-view"
                           ng-bind-html="formData.partnerInfo.projectExperience | unsafe">
                        </p>
                    </div>
                </div>

                <div class="form-group form-group-sm">
                    <label class="col-xs-2 control-label">个人简历</label>

                    <div class="col-xs-10">
                        <p class="form-control-static">
                            <a target="_blank" ng-href="{{formData.partnerInfo.resume.link||'javascript:void(0)'}}"
                               ng-bind="formData.partnerInfo.resume.name||'无'"></a>
                        </p>
                    </div>
                </div>
            </div>
            <div class="col-xs-6">
                <button class="btn btn-info btn-meta-14 btn-meta-blue" type="button" ng-click="edit('p')"
                        ng-disabled="accountEditing">编辑个人资料
                </button>
            </div>
        </div>
        <form name="form" novalidate ng-submit="submitForm(form.$valid)" class="info-profile editing"
              ng-if="profileEditing">
            <h4 class="info-title">个人资料</h4>

            <div class="info-body">
                <div class="form-group form-group-sm">
                    <label class="col-xs-2 control-label"><strong>渠道领域</strong></label>

                    <div class="col-xs-8">
                        <label class="checkbox-inline" ng-repeat="value in demandFields.areas">
                            <input type="checkbox" name="areas" value="{{value}}"
                                   ng-checked="formData.partnerInfo.areas.indexOf(value)!==-1"
                                   meta-form-checkbox="formData.partnerInfo.areas">
                            {{value}}
                        </label>
                    </div>
                    <div class="col-xs-2" ng-show="clicked && formData.partnerInfo.areas.length===0">
                        <span class="error-tips">至少选1个</span>
                    </div>
                </div>

                <div class="form-group form-group-sm"
                     ng-class="{'has-error': clicked && form.organization.$invalid}">

                    <label class="col-xs-2 control-label">
                        <strong>工作单位</strong>
                    </label>

                    <div class="col-xs-8">
                        <input type="text" name="organization" class="form-control"
                               ng-model="formData.partnerInfo.organization"
                               placeholder="工作单位">
                    </div>

                    <div class="col-xs-2" ng-messages="form.organization.$error" ng-show="clicked">
                        <span class="error-tips" ng-messages-include="my-custom-messages"></span>
                    </div>

                </div>

                <div class="form-group form-group-sm"
                     ng-class="{'has-error': clicked && form.department.$invalid}">

                    <label class="col-xs-2 control-label">
                        <strong>部门</strong>
                    </label>

                    <div class="col-xs-8">
                        <input type="text" name="department" class="form-control"
                               ng-model="formData.partnerInfo.department"
                               placeholder="部门">
                    </div>

                    <div class="col-xs-2" ng-messages="form.department.$error" ng-show="clicked">
                        <span class="error-tips" ng-messages-include="my-custom-messages"></span>
                    </div>

                </div>

                <div class="form-group form-group-sm"
                     ng-class="{'has-error': clicked && form.post.$invalid}">

                    <label class="col-xs-2 control-label">
                        <strong>职务</strong>
                    </label>

                    <div class="col-xs-8">
                        <input type="text" name="post" class="form-control"
                               ng-model="formData.partnerInfo.post"
                               placeholder="职务">
                    </div>

                    <div class="col-xs-2" ng-messages="form.post.$error" ng-show="clicked">
                        <span class="error-tips" ng-messages-include="my-custom-messages"></span>
                    </div>

                </div>

                <div class="form-group form-group-sm">
                    <!--ng-class="{'has-error': clicked && partnerInfo.areas.length === 0}">-->

                    <label class="col-xs-2 control-label">
                        <strong>常驻地</strong>
                        <!--<small>平台将就近推送项目信息，降低您的商务成本</small>-->
                    </label>

                    <div class="col-xs-8 clearfix">
                        <!--<div class="col-xs-3" style="padding:0">-->
                        <ui-select multiple ng-model="formData.partnerInfo.camp" style="height: auto">
                            <ui-select-match>
                                <span ng-bind="$item"></span>
                            </ui-select-match>
                            <ui-select-choices repeat="item in provinces | filter: $select.search">
                                <span ng-bind="item"></span>
                            </ui-select-choices>
                        </ui-select>
                        <!--</div>-->

                        <!--<div class="col-xs-6">-->
                        <!--<input class="form-control col-xs-6" type="text" ng-model="formData.enterpriseInfo.district"-->
                        <!--name="enterpriseInfoDistrict"-->
                        <!--placeholder="街道地区"/>-->
                        <!--</div>-->
                    </div>

                    <div class="col-xs-2" ng-show="clicked && formData.partnerInfo.camp.length===0">
                        <!--<span class="error-tips">至少选1个</span>-->
                    </div>

                </div>

                <div class="form-group form-group-sm"
                     ng-class="{'has-error': clicked&& form.projectExperience.$invalid}">

                    <label class="col-xs-2 control-label">
                        <strong>项目经验</strong>
                    </label>

                    <div class="col-xs-8">
                        <textarea class="form-control" ng-model="formData.partnerInfo.projectExperience"
                                  name="projectExperience" title="技术需求目前的技术问题、需求场景等信息"
                                  placeholder="技术需求目前的技术问题、需求场景等信息" froala="CONFIG.froalaOptions"></textarea>
                    </div>

                    <div class="col-xs-2" ng-messages="form.projectExperience.$error" ng-show="clicked">
                        <span class="error-tips" ng-messages-include="my-custom-messages"></span>
                    </div>

                </div>

                <div class="form-group form-group-sm">

                    <label class="col-xs-2 control-label">
                        <strong>上传简历</strong>
                    </label>

                    <div class="col-xs-8">
                        <p class="form-control-static">
                            <a target="_blank" ng-href="{{formData.partnerInfo.resume.link||'javascript:void(0)'}}"
                               ng-bind="formData.partnerInfo.resume.name||'无'"></a>
                        </p>
                        <meta-single-qnuploader class="meta-qnuploader meta-single-qnuploader"
                                                uploader-config="CONFIG.qnuploader"
                                                uploader-data="formData.partnerInfo.resume"></meta-single-qnuploader>
                    </div>
                </div>
                <div class="col-xs-6">
                    <button class="btn btn-info btn-meta-14 btn-meta-blue" type="submit">提&nbsp;&nbsp;交</button>
                    <button class="btn btn-info btn-meta-14 btn-meta-blue-reverse" type="button" ng-click="reset('p')">取&nbsp;&nbsp;消
                    </button>
                </div>
            </div>
        </form>
    </div>
    <div class="clearfix"></div>
</div>
